package com.demo.spring.实现mybatis与spring整合;

import org.springframework.beans.factory.annotation.AnnotatedGenericBeanDefinition;
import org.springframework.context.support.GenericApplicationContext;

public class Test {
	
	public static void main(String[] args) {
		GenericApplicationContext context = new GenericApplicationContext();
		context.registerBeanDefinition("config", new AnnotatedGenericBeanDefinition(Config.class));
		context.registerBeanDefinition("mapperPostProcessor", new AnnotatedGenericBeanDefinition(MapperPostProcessor.class));
		
		context.refresh();
		for(String name : context.getBeanDefinitionNames()) {
			System.out.println(name);
		}
	}

}
